Gallery.views.AlbumListPanel = Ext.extend(Ext.Panel, {
    layout: 'fit',
    initComponent: function() {
        console.log("Album List2 : " + Gallery.urlserver);
        this.store = new Ext.data.Store({
            model: 'Album'
        });
		this.store.proxy.url = Gallery.urlserver+'/api?action=sharedlist';
        
        this.store.load({
            params:{
                lg: Gallery.userlogin,
                uuid: Gallery.useruuid
            }
        });
        
        this.list = new Ext.List({
            itemTpl: '{name}',
            store: this.store
        });

        this.items = [this.list];
        
        Gallery.views.AlbumListPanel.superclass.initComponent.apply(this, arguments);
    } 
});

Ext.reg('gallery-albumlistpanel', Gallery.views.AlbumListPanel);